#ifndef __MAC_H
#define __MAC_H

#include "xlowpan.h"

extern void (*MAC_ReceivedPacket)(void* data, unsigned int datalength);
#define MAC_HANDLER(X,Y,Z) void X (void* Y, unsigned int Z)

void MAC_SetHandler(void (*X)(void*, unsigned int));

int MAC_CheckRadio(void);

void MAC_Transmit(void* data, unsigned int maxlength);

#endif